{% extends "miramar/base.html" %}
{% load i18n %}
{% load miramar_tags %}

{% block title %}{% trans "View changes" %}{% endblock %}
{% block content_title %}<h1>{% trans "View changes" %}</h1>{% endblock %}
{% block extrahead %}
{{ form.media }}
{% endblock %}
{% block extrastyle %}
{{ block.super }}
<style type="text/css">
  .add {
    background-color: #8f8;
    border: 1px solid #0dba00;
  }
  .delete {
    background-color: #99f;
    border: 1px solid #00009a;
  }
  #changeset {
    white-space: pre-wrap;       /* css-3 */
    white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
    white-space: -pre-wrap;      /* Opera 4-6 */
    white-space: -o-pre-wrap;    /* Opera 7 */
    word-wrap: break-word;       /* Internet Explorer 5.5+ */
  }
</style>
{% endblock %}
{% block content %}
<h2>{% trans "Key" %}</h2>
<p><span class="delete">
{% blocktrans with pageversion_a.version_tag as version_tag and pageversion_a.revision as revision and pageversion_a.time_stamp|date:'N j, Y P' as time_stamp %}
Version {{ version_tag }}:rev{{ revision }} ({{ time_stamp }})
{% endblocktrans %}
</span> &rsaquo; {{ pageversion_a.comment }}</p>
<p><span class="add">
{% blocktrans with pageversion_b.version_tag as version_tag and pageversion_b.revision as revision and pageversion_b.time_stamp|date:'N j, Y P' as time_stamp %}
Version {{ version_tag }}:rev{{ revision }} ({{ time_stamp }})
{% endblocktrans %}
</span> &rsaquo; {{ pageversion_b.comment }}</p>

<h2>{% trans "Changes" %}</h2>
<pre id="changeset">
{{ changes|safe }}
</pre>
{% endblock %}
